package com.liujit.bms.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liujit.bms.app.domain.model.BlogLabel;
import com.liujit.bms.app.domain.query.BlogLabelQuery;
import com.liujit.bms.app.domain.result.BlogLabelResult;
import com.liujit.bms.app.mapper.BlogLabelMapper;
import com.liujit.bms.app.service.BlogLabelService;
import com.liujit.common.constants.GlobalConstant;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description 博客标签Service实现类
 * @Author liujun
 * @Date 2021-07-13 11:09:07
 */
@Service
public class BlogLabelServiceImpl extends ServiceImpl<BlogLabelMapper, BlogLabel> implements BlogLabelService {

    @Override
    public List<BlogLabelResult> getList(BlogLabelQuery query) {
        query.setEnabled(GlobalConstant.ENABLED_YES);
        return super.baseMapper.selList(query);
    }
}
